interface FetchGeneralDataAPIResData {
  code: number
  msg: string
  time: string
  data: GeneralData
}

/**
 * @description 获取协议政策说明、轮播图、公告推荐等数据
 */
export function fetchGeneralDataAPI(keywords?: string) {
  return httpInstance.get<FetchGeneralDataAPIResData>(
    '/api/index/getwebInfo',
    { params: { keywords } },
  )
}
